export const InitLoc = (ProductList, workBench) => {
  const [ProductLineCode, PointCode] = workBench;
  let selectProductLine =  ProductList.filter(f => f.ProductLineCode == ProductLineCode)
  let selectorPointCode = selectProductLine?.[0]?.PointCodes.filter(f => f.PointCode == PointCode)
  let selectLocation = selectorPointCode?.[0]?.LocationIds;
  let mapLocation = selectLocation.map(m => (m.LocationId))
  // console.log('InitLocInitLocInitLoc', ProductList, workBench, mapLocation);
  return mapLocation
} 